import Layout from '@/layout'
import EmptyLayout from '@/layout/empty'

export default {
    path: '/user_center',
    component: Layout,
    redirect: '/user_center/user',
    name: 'userCenter',
    meta: {
        title: '用户中心',
        icon: 'user'
    },
    children: [
        {
            path: 'user',
            name: 'userCenterUser',
            component: EmptyLayout,
            redirect: '/user_center/user/list',
            meta: {
                title: '用户管理'
            },
            children: [
                {
                    path: 'list',
                    component: () => import(/* webpackChunkName: 'breadcrumb_example' */
                        '@/views/user/user/Index'),
                    meta: {
                        title: '列表2（层级模式）',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
                {
                    path: 'detail2',
                    name: 'breadcrumbExampleDetail2',
                    component: () => import(/* webpackChunkName: 'breadcrumb_example' */ '@/views/breadcrumb_example/detail2'),
                    meta: {
                        title: '详情2',
                        sidebar: false,
                        activeMenu: '/breadcrumb_example/list2'
                    }
                }
            ]
        },
        {
            path: 'group',
            name: 'userCenterGroup',
            component: () => import(/* webpackChunkName: 'breadcrumb_example' */
                '@/views/user/org/Index'),
            meta: {
                title: '组织管理'
            }
        },
        {
            path: 'detail1',
            name: 'breadcrumbExampleDetail1',
            component: () => import(/* webpackChunkName: 'breadcrumb_example' */ '@/views/breadcrumb_example/detail1'),
            meta: {
                title: '详情1',
                sidebar: false,
                activeMenu: '/breadcrumb_example/list1'
            }
        },
        {
            path: 'station',
            name: 'userCenterStation',
            component: EmptyLayout,
            redirect: '/user_center/station/list',
            meta: {
                title: '岗位管理'
            },
            children: [
                {
                    path: 'list',
                    component: () => import(/* webpackChunkName: 'breadcrumb_example' */
                        '@/views/user/station/Index'),
                    meta: {
                        title: '列表2（层级模式）',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
            ]
        }
    ]
}
